package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cnswhy.cloud.server.common.entity.enumeration.ExpressCompany;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SpellOrderPageDTO", description = "")
public class SpellOrderPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    private Long spellId;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long priceId;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long customerId;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String loginName;
    /**
     * 1待支付2拼团中3拼团成功4拼团失败5组团失败
     */
    @ApiModelProperty(value = "1待支付2拼团中3拼团成功4拼团失败5组团失败")
    private Integer status;
    /**
     * 收货地址
     */
    @ApiModelProperty(value = "收货地址")
    private Long addressId;
    @ApiModelProperty(value = "")
    private Long productId;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String payOrderNum;
    /**
     * 1拼购券3支付宝2微信
     */
    @ApiModelProperty(value = "1拼购券3支付宝2微信")
    private Integer payType;
    /**
     * 1待发货2待收货3完成4回购中5已回购
     */
    @ApiModelProperty(value = "1待发货2待收货3完成4回购中5已回购")
    private Integer sendStatus;
    /**
     * 1回购2发货
     */
    @ApiModelProperty(value = "1回购2发货")
    private Integer goodsType;
    @ApiModelProperty(value = "")
    private BigDecimal costPrice;
    @ApiModelProperty(value = "")
    private BigDecimal orderPrice;
    /**
     * 是否免中1是2否
     */
    @ApiModelProperty(value = "是否免中1是2否")
    private Integer isPrivilege;
    /**
     * 支付宝微信交易返回订单号
     */
    @ApiModelProperty(value = "支付宝微信交易返回订单号")
    @Length(max = 255, message = "支付宝微信交易返回订单号长度不能超过255")
    private String transactionId;
    /**
     * 预授权单号
     */
    @ApiModelProperty(value = "预授权单号")
    @Length(max = 100, message = "预授权单号长度不能超过100")
    private String authNo;
    /**
     * 付款userId
     */
    @ApiModelProperty(value = "付款userId")
    @Length(max = 100, message = "付款userId长度不能超过100")
    private String payUserId;
    /**
     * 预授转支付订单号
     */
    @ApiModelProperty(value = "预授转支付订单号")
    @Length(max = 50, message = "预授转支付订单号长度不能超过50")
    private String authPayOrderNum;
    /**
     * 免中特权id
     */
    @ApiModelProperty(value = "免中特权id")
    private Long privilegeId;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String expressNo;
    @ApiModelProperty(value = "")
    private ExpressCompany expressCompany;
    @ApiModelProperty(value = "")
    @Length(max = 50, message = "长度不能超过50")
    private String preTopayOrder;
    /**
     * 清算日期
     */
    @ApiModelProperty(value = "清算日期")
    @Length(max = 20, message = "清算日期长度不能超过20")
    private String settDate;

}
